﻿<%@ Page Language="C#" MasterPageFile="~/ffl/ffl.master" AutoEventWireup="true" CodeFile="club.aspx.cs" Inherits="ffl_anonymous_club" Title="Untitled Page" %>

<%@ Register src="../anonymous/webusercontrols/PlayerDetails.ascx" tagname="PlayerDetails" tagprefix="Anonymous" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form runat="server">
    <asp:DropDownList runat="server" ID="ClubDropDown" DataTextField="ClubName" DataValueField="Id" AutoPostBack="true"></asp:DropDownList>
    <asp:Repeater runat="server" ID="PositionRepeater" onitemdatabound="PositionRepeater_ItemDataBind">
        <HeaderTemplate>
            <table width="100%">
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center" class="tableheader" colspan="5">
                    <%# DataBinder.Eval(Container.DataItem, "PositionName") %>s
                </td>
            </tr>
            <asp:HiddenField runat="server" ID="PositionIdHidden" Value='<%# DataBinder.Eval(Container.DataItem, "Id") %>' />
            <asp:XmlDataSource runat="server" ID="PlayerDataSource" EnableCaching="false"></asp:XmlDataSource>
            <asp:Repeater runat="server" ID="PlayerRepeater">
                <HeaderTemplate>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center">
                            <Anonymous:PlayerDetails runat="server" ID="PlayerDetailsWUC" 
                                PlayerId='<%# DataBinder.Eval(Container.DataItem, "PlayerId") %>' 
                                HidePosition="True" 
                                HideClub="True"
                                />    
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                </FooterTemplate>
            </asp:Repeater>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    </form>
</asp:Content>

